// sku模块
import request from '@/utils/request'

// sku列表的接口  /admin/product/list/{page}/{limit}  get
export const reqSkuList = (page, limit) => request({ url: `/dev1-api/admin/product/list/${page}/${limit}`, method: 'get' })

// 上架  get  /admin/product/onSale/{skuId}
export const reqSale = (skuId) => request({ url: `/dev1-api/admin/product/onSale/${skuId}`, method: 'get' })

// 下架  get   /admin/product/canc-elSale/{skuId}
export const reqCancel = (skuId) => request({ url: `/dev1-api/admin/product/cancelSale/${skuId}`, method: 'get' })

// 获取SKU详情的接口  /admin/product/getSkuById/{skuId}  get
export const reqSkuById = (skuId) => request({ url: `/dev1-api/admin/product/getSkuById/${skuId}`, method: 'get' })